require(["config"], function(config) {
	require(["jquery", "sw","ck"], function(jq, sw,cookie) {
		/**************跳转***************/
		var num=jq("#time").text();
		function delayer(){
 			window.location = "index.html";
		}
		var t=setInterval(function(){
			num-=1;
			console.log(num)
			jq("#time").text(num)
			if(num<=0){
				clearInterval(t)
				delayer()
			}
		},1000)
		
		
		var a = jq.cookie("zhanghao");
		console.log(a)
		jq(".zhanghao").text(a)
		
		
		/**********************卡号********************/
		jq("#card").text(function(){
			var n=parseInt(Math.random()*100000000);
			return "卡号："+6301000000+n;
		})
		
	});
})